{% extends "base.html" %}

{% block js %}

<script src="/static/js/ajax.js"></script>

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

$('form').submit(function(){
    obj = $(this);
    doPost(obj, obj.attr('action'), obj.serializeArray());
    return false;
});

});
</script>
{% endblock %}

{% block content %}
<form action='/company/{{active_company_id}}/cases' method='post'>
    流程类型:
    <select name="type">
        <option value="0">自处理</option>
        <option value="1">公估公司</option>
    </select><br>
    出险地点:<input name='address' type='text'><br>
    出险时间:<input name='insurance_time' type='text'><br>
    出险原因:<input name='reason' type='text'><br>
    估损金额:<input name='value' type='text'><br>
    <input type='submit' value='submit'>
</form>
{% endblock %}
